How to modify the APM Insight PHP agent's communication port?

How to modify the APM Insight PHP agent's communication port?

The PHP agent uses ports 20021 and 20022 by default. You can change these ports by modifying the appropriate directive in the zpa.ini file (Linux) or php.ini file (Windows), as well as in the apminsight.conf file (Linux and Windows).

Default configurations:
  1. In the zpa.ini (Linux) or php.ini (Windows) file, set
zpa.status_port=20021
zpa.data_port=20022
  1. In the apminsight.conf file, set
agent.status.port=20021
agent.data.port=20022
Note: The values for zpa.status port and agent.status.port mustbe the same. Similarly, the values of zpa.data_port and agent.data.port must be the same. 

                  New to ADSelfService Plus?

                    • Related Articles

                    • How to install the APM Insight PHP Agent in an Azure Web App?

                      Follow these steps to install and configure the APM Insight PHP Agent in an Azure Web App. Step 1: Create a deployment script Navigate to the directory /home/apm/ (create it if it doesn’t exist). Create a new shell script named apm-phpagent-deploy.sh ...
                    • Troubleshooting communication between APM Insight Agent and Applications Manager

                      APM Insight agent communicates to the Applications Manager through the HTTP/HTTPS protocol. Make sure the communication between Applications Manager server and agent server via HTTP/HTTPS is allowed in firewall.To check , open a browser in the APM ...
                    • PHP Monitor Troubleshooting

                      PHP Monitor Errors and Troubleshooting Guide Check if the phpstats.php file in the webserver's document root. Ensure there are no modifications done in phpstats.php file Check if the given PHP path is correct. Retry with the "SSL is enabled" option ...
                    • Addressing Multiple Application Instances creation with Different Ports in APM Insight PHP Agent

                      Issue: After installing the APM Insight PHP Agent, multiple application instances appear with different port numbers for the same application, which is expected to run only on port 80/443. Issue Cause: As per the PHP agent’s auto-discovery behavior, ...
                    • Uninstrumented Block of Code - APM Insight

                      In the traces tab --> Slowest Method Calls and Count we show if you find Un-instrumented block of code the reason is as follows: Basically, What is un-instrumented block of code in APM Insight? By default, APM Insight agent monitors known frameworks ...